{% extends 'base.html' %}
{% load staticfiles %}
{% block title %} 机房添加 {% endblock %}
{% block content %}


    <div class="bk-panel">
        <div class="bk-panel-header p25" role="tab">
            <div class="panel-title">机房添加</div>
        </div>
        <div class="bk-panel-body p25">

            <div class="row">

                <div class="col-sm-12">
                    <div class="king-block ">
                        <div class="king-block-content">
                            <form class="form-horizontal" method="POST" action="{% url 'assets:idc_add' %}">

                                <div class="form-group">
                                    <label for="name" class="col-sm-3 control-label">机房名称</label>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="name" name="name"
                                               placeholder="机房名称">
                                    </div>
                                    <span class="text-danger mt5 fl">*</span>
                                </div>

                                <div class="form-group">
                                    <label for="contact_user" class="col-sm-3 control-label">联系人姓名</label>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="contact_user" name="contact_user"
                                               placeholder="联系人姓名">
                                    </div>
                                    <span class="text-danger mt5 fl">*</span>
                                </div>

                                <div class="form-group">
                                    <label for="mobile" class="col-sm-3 control-label">联系电话</label>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="mobile" name="mobile"
                                               placeholder="联系电话">
                                    </div>
                                    <span class="text-danger mt5 fl">*</span>
                                </div>


                                <div class="form-group">
                                    <label for="other_mobile" class="col-sm-3 control-label">备用电话</label>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="other_mobile" name="other_mobile"
                                               placeholder="备用电话">
                                    </div>
                                    <span class="text-danger mt5 fl">*</span>
                                </div>


                                <div class="form-group">
                                    <label for="address" class="col-sm-3 control-label">机房地址</label>
                                    <div class="col-sm-7">
                                        <input type="text" class="form-control" id="address" name="address"
                                               placeholder="机房地址">

                                    </div>
                                    <span class="text-danger mt5 fl">*</span>
                                </div>

                                <div class="form-group has-feedback">
                                    <label class="control-label col-sm-3" for="introduction">个人说明</label>
                                    <div class="col-sm-7">
                                        <textarea class="form-control" rows="3" id="remark" name="remark"></textarea>
                                    </div>
                                </div>
                                 {% csrf_token %}
                                <div class="form-group">
                                    <div class="col-sm-7 col-sm-offset-3">
                                        <input type="submit" class="king-btn king-success mr10" value="提交"/>
                                        <input type="reset" class="king-btn king-default" value="取消"/>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

{% endblock %}